//
//  BZ_GHS_SelectCardView.m
//  penzer
//
//  Created by caiyc on 2018/11/21.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import "BZ_GHS_SelectCardView.h"

@implementation BZ_GHS_SelectCardView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (IBAction)close:(id)sender {
    [self dismiss];
}
- (IBAction)addCount:(UIButton *)sender {
    self.addAcount(sender.tag);
    [self dismiss];
}

+(instancetype)ShareCardView{
    return [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil].lastObject;
}
-(void)show{
  ///  [[[UIApplication sharedApplication]keyWindow]addSubview:self];
}
-(void)dismiss{
    [self removeFromSuperview];
}
-(void)awakeFromNib{
    [super awakeFromNib];
    self.company.backgroundColor = [UIColor colorWithRed:246/255.0 green:242/255.0 blue:252/255.0 alpha:1];
    self.company.textColor = [UIColor colorWithRed:152/255.0 green:152/255.0 blue:152/255.0 alpha:1];
//    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(dismiss)];
//    [self addGestureRecognizer:tap];
}
@end
